package demo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.xml.parsers.DocumentBuilderFactory;

public class Demo {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext contest=
                new AnnotationConfigApplicationContext("demo1");
        Person person=contest.getBean(Person.class);
        person.sayHello();


    }
}
